package com.ruoyi.share.service.impl;

import com.ruoyi.share.domain.ShareTitle;
import com.ruoyi.share.mapper.ShareTitleMapper;
import com.ruoyi.share.service.ShareTitleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShareTitleServiceImpl implements ShareTitleService {
    @Autowired
    private ShareTitleMapper shareTitleMapper;
    @Override
    public ShareTitle selectShareTitleById(Long id) {
        return shareTitleMapper.selectShareTitleById(id);
    }

    @Override
    public List<ShareTitle> selectShareTitleList(ShareTitle shareTitle) {
        return shareTitleMapper.selectShareTitleList(shareTitle);
    }

    @Override
    public int insertShareTitle(ShareTitle shareTitle) {
        return shareTitleMapper.insertShareTitle(shareTitle);
    }

    @Override
    public int updateShareTitle(ShareTitle shareTitle) {
        return shareTitleMapper.updateShareTitle(shareTitle);
    }

    @Override
    public int deleteShareTitleById(Long id) {
        return shareTitleMapper.deleteShareTitleById(id);
    }
}
